<template>
	<view class="content" id="privateseainfo">
		<u-cell-group>
			<u-cell title="客户名称" :value="detail.nickname"></u-cell>
			<u-cell title="性别" v-if="detail.gender == 0" value="保密"></u-cell>
			<u-cell title="性别" v-else-if="detail.gender == 1" value="男"></u-cell>
			<u-cell title="性别" v-else value="女"></u-cell>
			<u-cell title="手机号码" :value="detail.mobile"></u-cell>
			<u-cell title="客户来源" :value="detail.source.name"></u-cell>
			<u-cell title="成交状态" :value="detail.deal_text"></u-cell>
			<u-cell title="创建时间" :value="detail.createtime"></u-cell>
			<u-cell title="地区选择">
				<text slot="value" class="u-slot-label">
					<!-- 地区-->
					<view style="padding-left: 100px;text-align: right;">{{detail.region}}</view>
				</text>
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				detail: {
					source: {
						name: ''
					}
				},
				RegionShow: false
			}
		},
		onLoad(options) {
			this.id = options.id ? options.id : 0
			this.getbusinessinfo()
		},
		methods: {
			async getbusinessinfo() {
				let result = await this.$u.api.business.privateseaInfo({
					id: this.id
				})
				if (result.code == 1) {
					this.detail = result.data
				}
			}
		}
	}
</script>

<style>
	.content {
		/* width: 90%; */
		height: 100vh;
		/* margin: 0 auto; */
	}
	#privateseainfo /deep/.u-cell__title-text{
		width: 90px;
	}
</style>
